<?php require('../includes/mysqli_connect.php');
 	
	if (isset($_POST['q'])) {
	 
		$name=$_POST['q'];
		 
		$sql= "Select * from users where first_name like '%{$name}%'";
		echo $sql;
		$r=mysqli_query($dbc,$sql) or die ("Query {$q} <br /> MySql Error  ".mysqli_error($dbc));		 
		 
	}

 ?>

 <?php include('index.php') ?>